package edu.ncsu.csc.csc454.project.wheel;

import edu.ncsu.csc.csc454.project.resources.Constants;
import edu.ncsu.csc.csc454.project.utilities.ImageUtilities;
import edu.ncsu.csc.csc454.project.wheel.node.IconInfo;
import edu.ncsu.csc.csc454.project.wheel.node.Node;

/**
 * @author Team AW
 * @version 0.1
 */
public class WheelConfig {

    private NodeChain chain;

    public WheelConfig() {
        chain = new NodeChain();
        loadChain();
    }

    private void loadChain() {
        IconInfo info;
        for (int i = 0; i < 8; i++) {
            info = new IconInfo();
            info.setIcon(ImageUtilities.loadImage(Constants.ICON_PATHS[i]));
            info.setCaption(Constants.ICON_NAMES[i]);
            info.setPath("");

            chain.add(new Node(info));
        }
    }

    public NodeChain getChain() {
        return chain;
    }

}
